#!/usr/bin/env python
# encoding:utf-8
'''
@author: yangyongjie
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited. 
@contact: deamoncao100@gmail.com
software: garner
@file: manage.py
@time: 2022/8/25 14:40
@desc:
'''
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from model import db
from app import create_app

app = create_app()
manager = Manager(app)

#使用migrate管理app的数据模型变更
migrete = Migrate()
migrete.init_app(app,db)

manager.add_command("db",MigrateCommand)


if __name__ == "__main__":
    manager.run()
